<div id="main">
    <h1 class="page-title">Class: RightMenu</h1>
  
    <section>
      <header>
        <h2>
          <span class="attribs"><span class="type-signature"></span></span
          >RightMenu<span class="signature">(parent)</span
          ><span class="type-signature"></span>
        </h2>
      </header>
  
      <article>
        <div class="container-overview">
          <h4 class="name" id="RightMenu">
            <span class="type-signature"></span>new RightMenu<span
              class="signature"
              >(parent)</span
            ><span class="type-signature"></span>
          </h4>
  
          <div class="description">右键菜单对象</div>
  
          <h5>Parameters:</h5>
  
          <table class="params">
            <thead>
              <tr>
                <th>Name</th>
  
                <th>Type</th>
  
                <th class="last">Description</th>
              </tr>
            </thead>
  
            <tbody>
              <tr>
                <td class="name"><code>parent</code></td>
  
                <td class="type">
                  <span class="param-type">simpleMap</span>
                </td>
  
                <td class="description last">地图实例化对象</td>
              </tr>
            </tbody>
          </table>
  
          <dl class="details">
            
          </dl>
        </div>
  
        <h3 class="subsection-title">Methods</h3>
  
        <h4 class="name" id="addMenuOptions">
          <span class="type-signature"></span>addMenuOptions<span
            class="signature"
            >(array)</span
          ><span class="type-signature"></span>
        </h4>
  
        <div class="description">添加右键菜单配置属性</div>
  
        <h5>Parameters:</h5>
  
        <table class="params">
          <thead>
            <tr>
              <th>Name</th>
  
              <th>Type</th>
  
              <th class="last">Description</th>
            </tr>
          </thead>
  
          <tbody>
            <tr>
              <td class="name"><code>array</code></td>
  
              <td class="type">
                <span class="param-type">Array</span>
              </td>
  
              <td class="description last">菜单配置参数</td>
            </tr>
          </tbody>
        </table>
  
        <dl class="details">
          
        </dl>
  
        <h5>Example</h5>
  
        <pre
          class="prettyprint"
        ><code><span class="typ">RightMenu</span><span class="pun">.</span><span class="pln">addMenuOptions</span><span class="pun">([{</span><span class="pln">
       name</span><span class="pun">:</span><span class="pln"> </span><span class="str">'按钮1'</span><span class="pun">,</span><span class="pln"> 
       </span><span class="kwd">event</span><span class="pun">:</span><span class="pln"> </span><span class="pun">(</span><span class="pln">po</span><span class="pun">)</span><span class="pln"> </span><span class="pun">=&gt;</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
           </span><span class="com">// do something</span><span class="pln">
       </span><span class="pun">}</span><span class="pln">
  </span><span class="pun">},{</span><span class="pln">
       name</span><span class="pun">:</span><span class="pln"> </span><span class="str">'按钮2'</span><span class="pun">,</span><span class="pln"> 
       </span><span class="kwd">event</span><span class="pun">:</span><span class="pln"> </span><span class="pun">(</span><span class="pln">po</span><span class="pun">)</span><span class="pln"> </span><span class="pun">=&gt;</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
           </span><span class="com">// do something</span><span class="pln">
       </span><span class="pun">}</span><span class="pln">
  </span><span class="pun">}])</span><span class="pln">
   </span></code></pre>
  
        <h4 class="name" id="changeStyle">
          <span class="type-signature"></span>changeStyle<span class="signature"
            >(code)</span
          ><span class="type-signature"></span>
        </h4>
  
        <div class="description">改变菜单样式</div>
  
        <h5>Parameters:</h5>
  
        <table class="params">
          <thead>
            <tr>
              <th>Name</th>
  
              <th>Type</th>
  
              <th class="last">Description</th>
            </tr>
          </thead>
  
          <tbody>
            <tr>
              <td class="name"><code>code</code></td>
  
              <td class="type">
                <span class="param-type">StyleString</span>
              </td>
  
              <td class="description last"></td>
            </tr>
          </tbody>
        </table>
  
        <dl class="details">
          
        </dl>
  
        <h4 class="name" id="clear">
          <span class="type-signature"></span>clear<span class="signature"
            >()</span
          ><span class="type-signature"></span>
        </h4>
  
        <div class="description">清除右键菜单</div>
  
        <dl class="details">
          
        </dl>
  
        <h4 class="name" id="clearMenuOptions">
          <span class="type-signature"></span>clearMenuOptions<span
            class="signature"
            >()</span
          ><span class="type-signature"></span>
        </h4>
  
        <div class="description">清除右键菜单属性</div>
  
        <dl class="details">
          
        </dl>
  
        <h4 class="name" id="destroy">
          <span class="type-signature"></span>destroy<span class="signature"
            >()</span
          ><span class="type-signature"></span>
        </h4>
  
        <div class="description">注销右键菜单</div>
  
        <dl class="details">
          
        </dl>
  
        <h4 class="name" id="moveEvent">
          <span class="type-signature"></span>moveEvent<span class="signature"
            >()</span
          ><span class="type-signature"></span>
        </h4>
  
        <div class="description">移动绑定事件</div>
  
        <dl class="details">
          
        </dl>
  
        <h4 class="name" id="renderHtml">
          <span class="type-signature"></span>renderHtml<span class="signature"
            >(position)</span
          ><span class="type-signature"></span>
        </h4>
  
        <div class="description">渲染右键菜单HTML</div>
  
        <h5>Parameters:</h5>
  
        <table class="params">
          <thead>
            <tr>
              <th>Name</th>
  
              <th>Type</th>
  
              <th class="last">Description</th>
            </tr>
          </thead>
  
          <tbody>
            <tr>
              <td class="name"><code>position</code></td>
  
              <td class="type">
                <span class="param-type">Object</span>
              </td>
  
              <td class="description last">经纬度坐标点信息</td>
            </tr>
          </tbody>
        </table>
  
        <dl class="details">
          
        </dl>
  
        <h4 class="name" id="show">
          <span class="type-signature"></span>show<span class="signature"
            >(position)</span
          ><span class="type-signature"></span>
        </h4>
  
        <div class="description">显示菜单</div>
  
        <h5>Parameters:</h5>
  
        <table class="params">
          <thead>
            <tr>
              <th>Name</th>
  
              <th>Type</th>
  
              <th class="last">Description</th>
            </tr>
          </thead>
  
          <tbody>
            <tr>
              <td class="name"><code>position</code></td>
  
              <td class="type">
                <span class="param-type">Object</span>
              </td>
  
              <td class="description last">经纬度坐标</td>
            </tr>
          </tbody>
        </table>
  
        <dl class="details">
          
        </dl>
      </article>
    </section>
  </div>
  